import request from '@/utils/request'

export default {
  categoryList(params) {
    return request({
      url: '/v1/toolCategoryList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/toolCategory/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/toolCategoryUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/toolCategoryAdd',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/toolCategoryDel/${id}`,
      method: 'get'
    })
  }
}
